<div>
    <h2 data-translate="milkbeeApp.present.home.title">Presents</h2>
    <jhi-alert></jhi-alert>
    <br/>
    <div class="table-responsive">
        <table class="jh-table table table-striped">
            <thead>
                <tr jh-sort="vm.predicate" ascending="vm.reverse" callback="vm.transition()">
                    <th jh-sort-by="createdAt"><span data-translate="milkbeeApp.present.createdAt">Created At</span> <span class="glyphicon glyphicon-sort"></span></th>
                    <th jh-sort-by="title"><span data-translate="milkbeeApp.present.title">Title</span> <span class="glyphicon glyphicon-sort"></span></th>
                    <th jh-sort-by="reason"><span data-translate="milkbeeApp.present.reason">Reason</span> <span class="glyphicon glyphicon-sort"></span></th>
                    <th jh-sort-by="cost"><span data-translate="milkbeeApp.present.cost">Cost</span> <span class="glyphicon glyphicon-sort"></span></th>
                    <th jh-sort-by="senderId"><span data-translate="milkbeeApp.present.senderId">Sender Id</span> <span class="glyphicon glyphicon-sort"></span></th>
                    <th jh-sort-by="recieverId"><span data-translate="milkbeeApp.present.recieverId">Reciever Id</span> <span class="glyphicon glyphicon-sort"></span></th>
                    <th></th>
                </tr>
            </thead>
            <tbody>
                <tr ng-repeat="present in vm.presents track by present.id">
                    <td>{{present.createdAt | date:'medium'}}</td>
                    <td>{{present.title}}</td>
                    <td>{{present.reason}}</td>
                    <td>{{present.cost}}</td>
                    <td>{{present.senderNike}}</td>
                    <td>{{present.recieverNike}}</td>
                    <td class="text-right">
                        <div class="btn-group flex-btn-group-container">
                        </div>
                    </td>
                </tr>
            </tbody>
        </table>
    </div>
    <div class="text-center">
        <jhi-item-count page="vm.page" total="vm.queryCount" items-per-page="vm.itemsPerPage"></jhi-item-count>
        <uib-pagination class="pagination-sm" total-items="vm.totalItems" items-per-page="vm.itemsPerPage" ng-model="vm.page" ng-change="vm.transition()"></uib-pagination>
    </div>
</div>
